package com.gxa.eshop.portal.thread;

import com.gxa.eshop.pojo.User;

/**
 * @author bill
 * @date 2022/1/20 11:21
 */
public class UserThreadLocal {

    private static ThreadLocal<User> tl=new ThreadLocal<>();

    public static void set(User user){
        tl.set(user);
    }

    public static User get(){
        return tl.get();
    }

    public static void remove(){
        tl.remove();
    }

}